package lmscript.postscript.syntax;

import lmscript.postscript.syntax.stack.OperandStack;

public class PSBoolean extends PSSimple {

	public static final String NAME = "boolean";
	private boolean bool;

	public PSBoolean(boolean bool) {
		super(NAME, LITERAL);
		this.bool = bool;
	}

	public boolean getValue() {
		return this.bool;
	}
	
	public String toString() {
		return bool ? "true" : "false";
	}
	
	public String getTypeString() {
		return super.getTypeString() + ":" + NAME;
	}

	@Override
	public boolean execute(OperandStack os) {
		// TODO Auto-generated method stub
		return false;
	}
}
